<?php

namespace App\Http\Controllers\Api\V1;

use App\Models\GoldNew;
use App\Http\Controllers\Api\V1\Resources\GoldNewsResource;

class GoldNewsController extends Controller
{
	public function index()
	{
		$news = GoldNew::where("is_disabled",true)->orderByDesc('id')->paginate();
		return GoldNewsResource::collection($news);
	}
	
}
